import { wxRequest } from '@/utils/request'

export function my (state = { myName: 'my1' }, action) {
  if (action.type === 'MY') {
    return {
      ...state,
      ...action.data
    }
  } else {
    return {
      ...state
    }
  }
  // switch (action.type) {
  //   case 'MY':

  //   return {
  //     ...state,
  //     ...action.data
  //   }
  //   default: return state

  // }

}